package com.woniu.springboot.mybatis.controller;

import com.woniu.springboot.mybatis.mapper.TeacherMapper;
import com.woniu.springboot.mybatis.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhaolei
 * @date 2021/4/26 - 1:43
 */
@RestController
public class UserController {
    @Autowired
    private TeacherMapper teacherMapper;
    @GetMapping(value = "/find")
    public Teacher selectTeacher(){
        return teacherMapper.selectTeacherByTid(1);
    }
}
